package vng.wcc.sonph.LauncherGenerator;

import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;


public class CellInfo {

	private String title;
	private Bitmap iconImage;	
	public Bitmap getIconImage() {
		return iconImage;
	}

	private Intent intent;
	/**
	 * Contains information for a cell
	 * @param context
	 * @param iconResId icon resource id
	 * @param formatter provides layout information 
	 * @param title icon title
	 * @param intent to launch
	 */
	public CellInfo(Context context,int iconResId,Formatter formatter,String title,Intent intent) {
		this.title = title;
		this.intent = intent;
		this.iconImage = Formatter.scaleImageResource(context,iconResId, formatter.getIconImageSize(), formatter.getIconImageSize());
	}

	public String getTitle() {
		return title;
	}

	public Intent getIntent() {
		return this.intent;
	}
}
